package design.patterns.factory;

/**
 * @author daxue0929
 * @date 2023/4/11
 */

public class CoffeeStore {

    public Coffee orderCoffee(String type){
        SimpleCoffeeFactory simpleCoffeeFactory = new SimpleCoffeeFactory();
        Coffee coffee = simpleCoffeeFactory.createCoffee(type);

        //加配料
        coffee.addSugar();
        coffee.addMilk();
        return coffee;
    }


}
